# 从键盘获取10个数, 打印大于50的数的个数

a = 0
e = 0
while a < 10:
    l = int(input())
    if l > 50:
        e += 1
    a += 1
print(e)